// 应聘申请表接口地址
import request from "@/utils/request";

// 新增应聘申请表
export function newJobApplication(data) {
  return request({
    url: "/system/job/save",
    method: "POST",
    data,
  });
}
// 应聘申请表详情
export function jobApplicationInfo(id) {
  return request({
    url: `/system/job/getInfoById`,
    method: "get",
    params: {
      id,
    }
  });
}
// 应聘申请列表
export function jobApplicationList(params) {
  return request({
    url: "/system/job/list",
    method: "get",
    params,
  });
}
// 搜索应聘岗位部门下拉框
export function searchDepyList() {
  return request({
    url: "/system/dept/listV2",
    method: "get",
  });
}
// 搜索应聘岗位
export function getTalentPoolList(params) {
  return request({
    url: `/talent/pool/list`,
    method: "get",
    params,
  });
}
// 收录人才库
export function setTalentPoolList(params) {
  return request({
    url: `/system/job/takeDown`,
    method: "post",
    params,
  });
}
// 收录人才库
export function submitJob(data) {
  return request({
    url: `/system/job/interviewInitiationSubmit`,
    method: "post",
    data,
  });
}
